<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>已发布借款</title>
    <link rel="stylesheet" href="/css/reset.css">
    <link rel="stylesheet" href="/css/common.css">
    <link rel="stylesheet" href="/css/user_siderbar.css">
    <link rel="stylesheet" href="/css/publishedloan.css">
    <link rel="stylesheet" href="/css/page.css">
    <script type="text/javascript" src="/js/assets/config.js"></script>
    <script type="text/javascript" src="/js/assets/require.js" data-main="/js/users/publishedloan"></script>
</head>
<body>
<#include "/include/header.ftl">
<div class="container clear">
<#include "/include/user_siderbar.ftl">
    <div class="wrap fr">
        <h1 class="h1">
            我的借款
        </h1>
        <ul class="myLoan fr">
            <li id="already" class="active">已申请</li>
            <li id="unready">已发布</li>
        </ul>
       <#--已经申请-->
        <div class="allInfo">
        <table>
            <thead>
              <tr>
                  <td width="25%">类型</td>
                  <td width="25%">借款金额(元)</td>
                  <td width="25%">申请时间</td>
                  <td width="25%">状态</td>
              </tr>
            </thead>
            <tbody id="alreadyAppliedBody">

            </tbody>
            <script id="alreadyAppliedItem" type="text/x-handlebars-template">
                {{#each this}}
                <tr>
                    {{#compare loanType '==' '2'}}
                    <td>懿房贷</td>
                    {{/compare}}
                    {{#compare loanType '==' '3'}}
                    <td>懿车贷</td>
                    {{/compare}}
                    {{#compare loanType '==' '1'}}
                    <td>懿信贷</td>
                    {{/compare}}
                    <td>{{amount}}</td>
                    <td>{{addtime}}</td>
                    {{#compare status '==' '1'}}
                    <td>审核中</td>
                    {{/compare}}
                    {{#compare status '==' '2'}}
                    <td>审核通过</td>
                    {{/compare}}
                    {{#compare status '==' '3'}}
                    <td>审核未通过</td>
                    {{/compare}}
                    {{#compare status '==' '4'}}
                    <td>已发布</td>
                    {{/compare}}
                </tr>
                {{/each}}
            </script>
           <#-- <tr>
                <td width="25%">类型</td>
                <td width="25%">借款金额(元)</td>
                <td width="25%">申请时间</td>
                <td width="25%">状态</td>
            </tr>-->
        </table>
            <#--<div class="pages">
                <nav>
                    <ul id="pages" style="margin:74px auto">
                    </ul>
                </nav>
            </div>-->
        </div>

        <#--已申请的借款-->
        <div class="allInfo1" hidden>
            <table>
                <thead>
                <tr class="title">
                    <td>标题</td>
                    <td>类型</td>
                    <td>金额(元)</td>
                    <td>年利率(%)</td>
                    <td>期限</td>
                    <td>还款方式</td>
                    <td>发布时间</td>
                    <td>状态</td>
                </thead>
                <tbody id="released">
                </tbody>
                <script id="releasedItem" type="text/x-handlebars-template">
                    {{#each this}}
                    <tr>
                        <td>{{itemName}}</td>
                        {{#compare itemType '==' '2'}}
                        <td>懿房贷</td>
                        {{/compare}}
                        {{#compare itemType '==' '3'}}
                        <td>懿车贷</td>
                        {{/compare}}
                        {{#compare itemType '==' '1'}}
                        <td>懿信贷</td>
                        {{/compare}}
                        <td>{{itemAccount}}</td>
                        <td>{{itemRate}}</td>
                        <td>{{itemCycle}}天</td>
                        {{#compare itemRepayMethod '==' '1'}}
                        <td>一次性还款</td>
                        {{/compare}}
                        {{#compare itemRepayMethod '==' '2'}}
                        <td>等额本息</td>
                        {{/compare}}
                        {{#compare itemRepayMethod '==' '3'}}
                        <td>先息后本</td>
                        {{/compare}}
                        {{#compare itemRepayMethod '==' '4'}}
                        <td>每日付息</td>
                        {{/compare}}
                        <td>{{releaseTime}}</td>


                        {{#compare itemStatus '==' '0'}}
                        <td>开始</td>
                        {{/compare}}
                        {{#compare itemStatus '==' '1'}}
                        <td>等待开放</td>
                        {{/compare}}
                        {{#compare itemStatus '==' '2'}}
                        <td>初审中</td>
                        {{/compare}}
                        {{#compare itemStatus '==' '10'}}
                        <td>开放</td>
                        {{/compare}}
                        {{#compare itemStatus '==' '11'}}
                        <td>初审失败</td>
                        {{/compare}}
                        {{#compare itemStatus '==' '13'}}
                        <td>测回审核</td>
                        {{/compare}}
                        {{#compare itemStatus '==' '14'}}
                        <td>测回成功</td>
                        {{/compare}}
                        {{#compare itemStatus '==' '18'}}
                        <td>截标</td>
                        {{/compare}}
                        {{#compare itemStatus '==' '20'}}
                        <td>满标</td>
                        {{/compare}}
                        {{#compare itemStatus '==' '21'}}
                        <td>满标成功</td>
                        {{/compare}}
                        {{#compare itemStatus '==' '22'}}
                        <td>复审失败</td>
                        {{/compare}}
                        {{#compare itemStatus '==' '23'}}
                        <td>复审审核</td>
                        {{/compare}}
                        {{#compare itemStatus '==' '24'}}
                        <td>第三方放款失败</td>
                        {{/compare}}
                        {{#compare itemStatus '==' '30'}}
                        <td>复审通过待审核</td>
                        {{/compare}}
                        {{#compare itemStatus '==' '31'}}
                        <td>部分还款</td>
                        {{/compare}}
                        {{#compare itemStatus '==' '32'}}
                        <td>还款成功</td>
                        {{/compare}}
                    </tr>
                    {{/each}}
                </script>
            </table>
           <#-- <div class="pages">
                <nav>
                    <ul id="pages" style="margin:74px auto">
                    </ul>
                </nav>
            </div>-->
        </div>
        <div class="pages">
            <nav>
                <ul id="pages" style="margin:74px auto">
                </ul>
            </nav>
        </div>
    </div>
</div>
<#include "/include/footer.ftl">
<#include "/include/smalldetails.ftl">
</body>
</html>